package com.mijie.homi.service.message;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mijie.homi.common.domain.SystemMessage;
import com.mijie.homi.dao.message.SystemMessageDao;

@Service
public class SystemMessageService {

	
	@Autowired
	private SystemMessageDao sysMsgdao;
	
	public SystemMessage getSystemMessage(int id){
		return sysMsgdao.getSystemMessage(id);
	}
	
	public int createSystemMessage(SystemMessage msg){
		return sysMsgdao.createSystemMessage(msg);
	}
	
	public List<SystemMessage> getSystemMsg4User(int systemMsgMark){
		return sysMsgdao.getSystemMsg4User(systemMsgMark);
	}
	
	public int getMaxSysMsgId(){
		return sysMsgdao.getMaxSysMsgId();
	}

}
